package pres.lnk.learn.designpattern.e_prototype.shape;

/**
 * 形状抽象类
 * @Author lnk
 * @Date 2018/2/6
 */
public abstract class Shape implements Cloneable {
    private String id;
    private String type;

    abstract void draw();

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
